package com.dotflat.satistics.repository.crm;

import com.dotflat.satistics.vo.home.ProductVo;
import com.matt.domain.Product;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * *******************************
 * Created by Ron.
 * form com.matt
 * on 2018/7/20
 * *******************************
 */

public interface ContractProductRepository {

    List<ProductVo> findAllVisible();

    List<Map<String, Object>> findUnitPriceByAreaIdAndProductIdGroupByCreated(Date begin, Date end, String areaId, String productId);

    List<Map<String, Object>> findUnitPriceByAreaIdInAndProductIdGroupByAreaId(Date begin, Date end, String areaIds, String productId);

    List<Map<String, Object>> findUnitPriceByAreaId(String areaId, Date begin, Date end);
}
